package edu.zut.cs.software.estateagent.property.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.property.domain.Property;
import edu.zut.cs.software.estateagent.property.service.PropertyManager;

@Controller
@CrossOrigin(origins = "*")
@RequestMapping("/property/property")
public class PropertyController extends GenericController<Property, Long, PropertyManager> {

	PropertyManager propertyManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/property/index";
		pageable.getPageNumber();
		return result;

	}

	@Autowired
	public void setPropertyManager(PropertyManager propertyManager) {
		this.propertyManager = propertyManager;
		this.manager = this.propertyManager;
	}

}
